﻿using Domain.Entities.ToDo;
using Microsoft.EntityFrameworkCore;

namespace Application.Commons.Data;

public static partial class ApplicationDbContextExtensions
{
    public static DbSet<ToDoCategory> ToDoCategories(this EfCoreDbContext db)
        => db.Set<ToDoCategory>();

    public static DbSet<ToDoItem> ToDoItems(this EfCoreDbContext db)
        => db.Set<ToDoItem>();

    public static DbSet<ToDoItemCategory> ToDoItemCategories(this EfCoreDbContext db)
      => db.Set<ToDoItemCategory>();
}